package com.cssl.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "zfb")
public class ZFB {

    private String appId;
    private String appPrivateKey;
    private String charSet;
    private String AlipayPublicKey;
    private String gateWayUrl;
    private String format;
    private String signType;
    private String notifyUrl;
    private String returnUrl;

    @Override
    public String toString() {
        return "ZFB{" +
                "appId='" + appId + '\'' +
                ", appPrivateKey='" + appPrivateKey + '\'' +
                ", charSet='" + charSet + '\'' +
                ", AlipayPublicKey='" + AlipayPublicKey + '\'' +
                ", gateWayUrl='" + gateWayUrl + '\'' +
                ", format='" + format + '\'' +
                ", signType='" + signType + '\'' +
                ", notifyUrl='" + notifyUrl + '\'' +
                ", returnUrl='" + returnUrl + '\'' +
                '}';
    }

    public ZFB() {
    }

    public ZFB(String appId, String appPrivateKey, String charSet, String alipayPublicKey, String gateWayUrl, String format, String signType, String notifyUrl, String returnUrl) {
        this.appId = appId;
        this.appPrivateKey = appPrivateKey;
        this.charSet = charSet;
        AlipayPublicKey = alipayPublicKey;
        this.gateWayUrl = gateWayUrl;
        this.format = format;
        this.signType = signType;
        this.notifyUrl = notifyUrl;
        this.returnUrl = returnUrl;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppPrivateKey() {
        return appPrivateKey;
    }

    public void setAppPrivateKey(String appPrivateKey) {
        this.appPrivateKey = appPrivateKey;
    }

    public String getCharSet() {
        return charSet;
    }

    public void setCharSet(String charSet) {
        this.charSet = charSet;
    }

    public String getAlipayPublicKey() {
        return AlipayPublicKey;
    }

    public void setAlipayPublicKey(String alipayPublicKey) {
        AlipayPublicKey = alipayPublicKey;
    }

    public String getGateWayUrl() {
        return gateWayUrl;
    }

    public void setGateWayUrl(String gateWayUrl) {
        this.gateWayUrl = gateWayUrl;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }
}
